import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/login', component: () => import('@/views/login/LoginPage.vue') },
    {
      path: '/',
      component: () => import('@/views/layout/LayoutCointer.vue'),
      children: [
        { path: '/manager/data', component: () => import('@/views/manager/ManagerData.vue') },
        { path: '/manager/layout', component: () => import('@/views/manager/ManagerLayout.vue') },
        { path: '/manager/user', component: () => import('@/views/manager/ManagerUser.vue') },
        { path: '/students/help', component: () => import('@/views/students/LearningHelp.vue') },
        {
          path: '/students/collect',
          component: () => import('@/views/students/LessonCollect.vue'),
        },
        { path: '/students/exam', component: () => import('@/views/students/MyExam.vue') },
        { path: '/students/lesson', component: () => import('@/views/students/MyLesson.vue') },
        { path: '/students/quiz', component: () => import('@/views/students/SmartQuiz.vue') },
        { path: '/students/title', component: () => import('@/views/students/TitleAgain.vue') },
        { path: '/teachers/lesson', component: () => import('@/views/teachers/AiLesson.vue') },
        {
          path: '/teachers/analysis',
          component: () => import('@/views/teachers/DataAnalysis.vue'),
        },
        { path: '/teachers/exam', component: () => import('@/views/teachers/ProductExam.vue') },
      ],
    },
  ],
})

export default router
